import { request } from "../../utils/request.js"


// /shopping/cart/account/number  获取购物车订单数量
// 获取购物车订单数量
export const getCartNumber = (params) => { 
    return request({ // 确保返回 request 的 Promise
        url: '/shopping/cart/account/number',
        method: 'GET',
        params
    });
}

// 用户登录
export const userLogin = (params) => {
	return request({
		url: '/user/login',
		method: 'POST',
		params
	})
}

export const getMarketInfo = (params) => {
	return request({
		url: '/market/getMarketInfo',
		method: 'GET',
		params
	})
}
